<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>

		<script>
			/*var rs = getWeekStartDate() + "-" + getWeekEndDate();
			console.log(rs);
			
			function (){
					var dt = new Date();
				var yyyy = dt.getFullYear();
				var mm = dt.getMonth();
				var dd = dt.getDate();
				var week = dt.getDay(); //0-6
			}
			//获得本周的开始日期 
			function getWeekStartDate() {
			
				var weekStartDate = new Date(yyyy, mm, dd - week + 1);
				var m = weekStartDate.getFullYear()
				return formatDate(weekStartDate);
			}
			//获得本周的开始日期 
			function getWeekEndDate() {
				var dt = new Date();
				var yyyy = dt.getFullYear();
				var mm = dt.getMonth();
				var dd = dt.getDate();
				var week = dt.getDay(); //0-6
				var weekEndDate = new Date(yyyy, mm, dd + 7 - week);
				console.log(weekEndDate)
				return formatDate(weekEndDate);
			}
	 
	 
	 */
	
	var str = "Wed Jun 28 2017 00:00:00 GMT+0800 (中国标准时间)";
 
			function formatDate(_dt) {
				_dt = new Date(_dt);
				var _yyyy = _dt.getFullYear();
				var _mm = _dt.getMonth() + 1;
				var _dd = _dt.getDate();
				if(_mm < 10) {
					_mm = "0" + _mm;
				}
				if(_dd < 10) {
					_dd = "0" + _dd;
				} 
				return(_mm + "月" + _dd + "日");
			}
		console.log (formatDate(str))
		</script>
	</body>

</html>